<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/include.inc.jsp"%>
		<form id="pagerForm" method="post"
			action="finddepartmentlist">
			<input type="hidden" name="numPerPage" value="${numPerPage}" />
			<input type="hidden" name="pageNum" value="1" />
			<input type="hidden" name="depname" value="${departmentEntity.depname}" />
		</form>
		<div class="page">
			<div class="pageHeader">
				<form onsubmit="return navTabSearch(this);"
					action="finddepartmentlist" method="post">
					<div class="searchBar">
						<ul class="searchContent">
							<li>
								<label>
									部门名称：
								</label>
								<input type="text" id="departmentEntity.depname" name="departmentEntity.depname" value="${departmentEntity.depname }" />
							</li>
							<li>
								<div class="buttonActive">
									<div class="buttonContent">
										<button type="submit">
											检索
										</button>
									</div>
								</div>
							</li>
						</ul>
					</div>
				</form>
			</div>
			<div class="pageContent">
				<div class="panelBar">
					<ul class="toolBar">
						<li>
							<a class="add" href="toadddepart" target="dialog"><span>添加</span></a>
						</li>
						<li>
							<a class="delete" href="todeletedepart?id={slt_id}"
								target="navTabTodo" title="确定要删除吗?"><span>删除</span>
							</a>
						</li>
						<li>
							<a class="edit" href="toeditdepart?id={slt_id}" target="dialog"><span>修改</span>
							</a>
						</li>
					</ul>
				</div>
				<table class="table" width="100%" layouth="138">
					<thead>
						<tr>
							<th>
								编号
							</th>
							<th>
								部门编码
							</th>
							<th>
								部门名称
							</th>
							<th>
								上级部门
							</th>
							<th>
								添加时间
							</th>
						</tr>
					</thead>
					<tbody>
					 
						<c:forEach var="item" items="${list}" varStatus="s">
							<tr target="slt_id" rel="${item.id}">
								<td>${s.index + 1}</td>
								<td>
									${item.depcode}
								</td>
								<td>
									${item.depname}
								</td>
								<td>
									${item.dephig}
								</td>
								<td>
									<fmt:formatDate value="${item.addtime}"  pattern="yyyy-MM-dd HH:mm:ss"/>
								</td>
							</tr>
						</c:forEach> 
					</tbody>
				</table>
				<div class="panelBar">
					<div class="pages">
						<span>显示</span>
						<select name="numPerPage"
							onchange="navTabPageBreak({numPerPage:this.value})">
							<c:forEach begin="10" end="40" step="10" varStatus="s">
								<option value="${s.index}" ${numPerPage eq s.index ? 'selected="selected"' : ''}>
									${s.index}
								</option>
							</c:forEach>
						</select>
						<span>共${countitem}条</span>
					</div>
					<div currentPage="${currentPage}" pageNumShown="10"
						numPerPage="${numPerPage }" totalCount="${countitem}"
						targetType="navTab" class="pagination">
					</div>
				</div>
			</div>
		</div>
